@import "~font-awesome/css/font-awesome.min.css";

.lexend-deca {
  font-family: "Lexend Deca", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500 !important;
  font-style: normal;
}

:root {
  --ifm-color-primary: #6d28d9;
  --ifm-color-primary-dark: #6223c5;
  --ifm-color-primary-darker: #5c21ba;
  --ifm-color-primary-darkest: #4c1b99;
  --ifm-color-primary-light: #7c3edd;
  --ifm-color-primary-lighter: #8349df;
  --ifm-color-primary-lightest: #996ae5;
  --ifm-code-font-size: 90%;
  --ifm-menu-color: #747680 !important;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);

  .theme-doc-markdown {
    p, ul {
      font-size: 1rem;
      line-height: 1.75;
    }
  }

  .alert {
    padding: 0.75rem;
    font-size: 14px;
  }

  .alert--info {
    --ifm-alert-background-color: #f5fcff !important;
    --ifm-alert-border-color: #2264ab !important;
  }

  .alert--success {
    --ifm-alert-background-color: #f5fffd !important;
    --ifm-alert-border-color: #09bda8 !important;
  }

  .alert--secondary {
    --ifm-alert-background-color: #f8fafc !important;
    --ifm-alert-border-color: black !important;
  }

  .alert--danger {
    --ifm-alert-background-color: #ffeff5 !important;
    --ifm-alert-border-color: #f30065 !important;
  }

  .alert--warning {
    --ifm-alert-background-color: #fffbe7 !important;
    --ifm-alert-border-color: #ffdc42 !important;
  }
}


/* For readability concerns, you should choose a lighter palette in dark mode. */
html[data-theme="dark"] {
  --ifm-color-primary: #7c3aed;
  --ifm-color-primary-dark: #6a1feb;
  --ifm-color-primary-darker: #6215e6;
  --ifm-color-primary-darkest: #5111bd;
  --ifm-color-primary-light: #8e55ef;
  --ifm-color-primary-lighter: #9763f1;
  --ifm-color-primary-lightest: #b28bf4;
  --ifm-background-color: #13171e;
  --ifm-background-surface-color: #13171e;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);

  .alert--info {
    --ifm-alert-background-color: #1e293b !important;  /* deep navy */
    --ifm-alert-border-color: #3b82f6 !important;      /* vivid blue border */
    color: #dbeafe !important;                         /* light blue text */
  }

  .alert--success {
    --ifm-alert-background-color: #022c22 !important;
    --ifm-alert-border-color: #12be84 !important;
  }

  .alert--secondary {
    --ifm-alert-background-color: #020617 !important;
    --ifm-alert-border-color: white !important;
  }

  .alert--danger {
    --ifm-alert-background-color: #ffeff5 !important;
    --ifm-alert-border-color: #f30065 !important;
  }

  .alert--warning {
    --ifm-alert-background-color: #2a1f00 !important;
    --ifm-alert-border-color: #facc15 !important;
  }
}

html[data-theme="dark"] details {
  background-color: #23272f !important;
  color: #e5e7eb !important;
  border: 1px solid #374151 !important;
  box-shadow: 0 1px 6px 0 rgba(30, 41, 59, 0.3) !important;
}

html[data-theme="dark"] details summary {
  color: #f3f4f6 !important;
}

html[data-theme="dark"] details [class*="collapsibleContent"] {
  border-top: 1px solid #374151 !important;
}

// COLLAPSIBLE STYLING

details {
  color: #1d232e;
  background-color: white !important;
  border: 1px solid #e9eef2 !important;
  border-radius: 4px !important;
  padding: 0.75rem 0.75rem !important;
  margin-bottom: 1rem !important;
  margin-top: 2rem !important;
  box-shadow: 0 1px 6px 0 rgba(213, 215, 223, 0.409) !important;
}

details summary {
  font-weight: 600 !important;
}

details summary::before {
  border-color: transparent transparent transparent rgb(49, 53, 62) !important;
}

details [class*="collapsibleContent"] {
  border-top: 1px solid #e2e8f0 !important;

  p, ul {
    font-size: 14px !important;
    line-height: 1.75;
  }
}

.tabs-container > div {
  padding: 1rem;
  border: 1px solid #cbd4de8d;
  border-radius: 6px;
}

/* Remove styling from nested tabs containers */
.tabs-container .tabs-container > div {
  padding: 0;
  border: none;
  border-radius: 0;
}


ul.tabs {
  border-bottom: 1px solid #cbd4de !important;
  column-gap: 0.5rem !important;
}

li.tabs__item {
  padding: 0.5rem !important;
  font-weight: 500 !important;
  border-bottom: 1px solid transparent !important;
}

li.tabs__item--active {
  border-bottom: 1px solid #6d28d9 !important;
}

// TOP NAV STYLING

.navbar {
  background-color: #1d232e;
}

.avatar__name > a {
  color: black !important;
}

.navbar__link {
  font-weight: 400 !important;
  font-size: 15px !important;
  border-bottom: 2px solid transparent !important;
}

.navbar__link--active {
  font-weight: 500 !important;
  border-bottom: 2px solid #710bee !important;
}

@media (max-width: 1330px) {
  .navbar__link {
    font-size: 14px !important;
  }
}

html[data-theme="light"] .navbar {
  background-color: white;
}

.navbar__logo {
  height: 2.2rem;
}

html[data-theme="light"] .navbar__logo {
  filter: invert(100%);
}

div[class^="announcementBar_"] {
  font-weight: 600;
}

html[data-theme="light"] div[class^="announcementBar_"] {
  background-color: #710bee !important;
  color: white !important;
}

.header-github-link:hover {
  opacity: 0.6;
}

.header-github-link:before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

html[data-theme="dark"] .header-github-link:before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")
    no-repeat;
}

.header-twitter-link:hover {
  opacity: 0.6;
}

.header-twitter-link:before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%23000000' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
}

html[data-theme="dark"] .header-twitter-link:before {
  filter: invert(100%);
}
.footer {
  background: #20232a;
}

.footer__copyright {
  font-size: 13px;
}

.footer__link-item {
  color: #9ca3af;
}

.footer__link-item:hover {
  text-decoration: none;
}

.footer__bottom {
  margin: 40px auto 10px auto;
}

html[data-theme="dark"] .header-confident-link {
  background-color: white;
  color: black;
  box-shadow: -4px 4px 0 #6d28d9;
}

.header-confident-link {
  display: flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  column-gap: 0.1rem;
  border: 1px solid black;
  box-shadow: -4px 4px 0 black;
  transition: all 0.2s ease-in-out;
}

html[data-theme="dark"] .header-confident-link:hover {
  box-shadow: 0px 0px 0 transparent;
  transform: translateX(-4px) translateY(4px);
}

.header-confident-link:hover {
  box-shadow: 0px 0px 0 transparent;
  transform: translateX(-4px) translateY(4px);
}

.header-confident-link:before {
  content: "";
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  background: url("/icons/logo.svg");
  background-size: cover;
  margin-right: 0.5rem;
}

.header-discord-link:hover {
  opacity: 0.6;
}

.header-discord-link:before {
  content: "";
  width: 28px;
  height: 28px;
  display: flex;
  background: url("");
  background-size: cover;
}

html[data-theme="dark"] .header-discord-link:before {
  filter: invert(100%);
}

html[data-theme="light"] #invertable-img {
  filter: invert(100%);
}

html[data-theme="dark"] #light-invertable-img {
  filter: invert(100%);
}

#rag-evaluation {
  margin-left: 140px;
  width: 50%;
}

#rag-triad {
  width: 70%;
}

html[data-theme="dark"] #rag-evaluation {
  filter: invert(100%);
}

@media (max-width: 1200px) {
  #rag-evaluation {
    width: 60%;
  }

  .header-confident-link {
    font-size: 13px;
    padding: 4px 10px;
  }

  .header-confident-link::before {
    display: none;
  }
}

@media (max-width: 1130px) {
  .header-confident-link {
    display: none;
  }
}

@media (max-width: 600px) {
  #rag-evaluation {
    margin-left: 0 !important;
    width: 80% !important;
  }
}

.theme-tabs__label {
  margin: 0 !important;
  padding: 0 !important;
}

img,
video {
  border-radius: 6px;
}

// MENU STYLING

/* Remove all the sidebar item ::before content */
.sidebar-item-getting-started > .menu__list-item-collapsible > a::before,
.sidebar-item-icon-llm-eval > .menu__list-item-collapsible > a::before,
.sidebar-item-icon-metrics > .menu__list-item-collapsible > a::before,
.sidebar-item-icon-prompt-optimization > .menu__list-item-collapsible > a::before,
.sidebar-item-icon-synthetic-data > .menu__list-item-collapsible > a::before,
.sidebar-item-icon-red-teaming > .menu__list-item-collapsible > a::before,
.sidebar-item-icon-benchmarks > .menu__list-item-collapsible > a::before,
.sidebar-item-icon-others > .menu__list-item-collapsible > a::before {
  content: none;
}


.sidebar-item-getting-started ul:not(:first-child),
.sidebar-item-icon-llm-eval ul:not(:first-child),
.sidebar-item-icon-prompt-optimization ul:not(:first-child),
.sidebar-item-icon-synthetic-data ul:not(:first-child),
.sidebar-item-icon-metrics ul:not(:first-child),
.sidebar-item-icon-red-teaming ul:not(:first-child),
.sidebar-item-icon-benchmarks ul:not(:first-child),
.sidebar-item-icon-others ul:not(:first-child) {
  margin-left: 18px !important;
  border-left: 1px solid #e0e0e0;
}

html[data-theme="dark"] .sidebar-item-getting-started > ul,
html[data-theme="dark"] .sidebar-item-icon-llm-eval > ul,
html[data-theme="dark"] .sidebar-item-icon-prompt-optimization > ul,
html[data-theme="dark"] .sidebar-item-icon-synthetic-data > ul,
html[data-theme="dark"] .sidebar-item-icon-metrics > ul,
html[data-theme="dark"] .sidebar-item-icon-red-teaming > ul,
html[data-theme="dark"] .sidebar-item-icon-benchmarks > ul,
html[data-theme="dark"] .sidebar-item-icon-others > ul {
  border-left-color: #383f4b;
}

/* Styling for Lucide icons in sidebar */
.sidebar-icon {
  margin-right: 0.4rem;
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Color adjustments for light/dark mode */
html[data-theme="light"] .sidebar-icon {
  color: black;
  font-weight: 500;
}

html[data-theme="dark"] .sidebar-icon {
  color: white;
  font-weight: 500;
}


/* Adjust color for light/dark modes */
html[data-theme="light"] .sidebar-item-getting-started > a::before,
html[data-theme="light"] .sidebar-item-icon-llm-eval > a::before,
html[data-theme="light"] .sidebar-item-icon-prompt-optimization > a::before,
html[data-theme="light"] .sidebar-item-icon-synthetic-data > a::before,
html[data-theme="light"] .sidebar-item-icon-red-teaming > a::before,
html[data-theme="light"] .sidebar-item-icon-benchmarks > a::before,
html[data-theme="light"] .sidebar-item-icon-others > a::before {
  filter: invert(35%) sepia(90%) saturate(1000%) hue-rotate(240deg)
    brightness(90%) contrast(95%);
}

html[data-theme="dark"] .sidebar-item-getting-started > a::before,
html[data-theme="dark"] .sidebar-item-icon-llm-eval > a::before,
html[data-theme="dark"] .sidebar-item-icon-prompt-optimization > a::before,
html[data-theme="dark"] .sidebar-item-icon-synthetic-data > a::before,
html[data-theme="dark"] .sidebar-item-icon-red-teaming > a::before,
html[data-theme="dark"] .sidebar-item-icon-benchmarks > a::before,
html[data-theme="dark"] .sidebar-item-icon-others > a::before {
  filter: invert(60%) sepia(75%) saturate(1000%) hue-rotate(240deg)
    brightness(95%) contrast(95%);
}


.theme-code-block-highlighted-line {
  background-color: #233144 !important;
}

.theme-code-block-highlighted-line > span {
  background-color: #233144 !important;
}

.menu {
  font-weight: 400;
  background-image: radial-gradient(rgba(0, 0, 0, 0.121) 1px, transparent 1px);
  background-size: 20px 20px;
}

html[data-theme="dark"] .menu {
  background-image: radial-gradient(
    rgba(30, 29, 32, 0.131) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.menu_list {
  padding-left: 0rem!important;
}

.menu__link {
  font-size: 15px;
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
}

.menu__link--active {
  font-weight: 500 !important;
  background-color: rgba(115, 0, 255, 0.083) !important;
}

.menu__link--sublist-caret:after {
  width: 0.7rem;
  height: 0.7rem;
  min-width: 0.7rem;
  background: var(--ifm-menu-link-sublist-icon) 50% / 1.2rem 1.2rem;
}

.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link:first-of-type {
  color: black; // Example: orange text
  font-weight: 600 !important;
  font-size: 15px;
}

/* Dark mode */
[data-theme='dark'] .theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link:first-of-type {
  color: white; // or any high-contrast color
  font-weight: 600 !important;
  font-size: 15px;
}

.theme-doc-sidebar-item-category-level-1 {
  margin-bottom: 2rem!important;
}

.menu__list .menu__list {
  padding-left: 3px!important;
}


// CODE STYLING

[class*="codeLineNumber"]::before {
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


[class*="codeBlockTitle"] {
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 0.5rem 1rem !important;
  border-bottom: 1px solid #51565d !important;
}

.theme-code-block-highlighted-line {
  background-color: #293344 !important;
}

.theme-code-block-highlighted-line > span {
  background-color: #293344 !important;
}

/* Add border to code blocks */
.prism-code {
  border-radius: 6px;
  font-size: 14px !important;
}

html[data-theme="dark"] .prism-code {
  border: 1px solid #334155;
}

.header-colab-button {
  float: right;
  margin-top: -120px; /* Adjust this value to position it at the top */
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}
